export function windowResize() {
    setTimeout(() => {
        var myEvent = new Event('resize');
        window.dispatchEvent(myEvent);
    }, 100);
}

export function delay(second: number) {
    return new Promise(resolve => setTimeout(resolve, second * 1000))
}